<?php


class UnaryOperator
{
    const ARITHMETIC_NEGATION = '-';
    const BITWISE_NOT = '~';
    const ERROR_CONTROL = '@';
    const LOGICAL_NEGATION = '!';
    const PRE_DECREMENT = '--';
    const PRE_INCREMENT = '++';    
    const POST_DECREMENT = '--';
    const POST_INCREMENT = '++';
    
    static public function Defines($const)
    {
        $cls = new ReflectionClass(__CLASS__);
        foreach($cls->getConstants() as $key=>$value)
        {
            if($value == $const)
            {
                return true;
            }
        }
        
        return false;
    }
}

?>
